package string;

public class SplitDemo {
    public static void main(String[] args) {
        /*
            如果有连续的分隔符，会劈出来空串
            连续的分隔符在最后出现，会被忽略
         */
        String str = "1?老王?15601011234?tom@tedu.cn,,,,,,";
        String[] data = str.split("\\?");
        System.out.println(data[0]);
        System.out.println(data[1]);
        System.out.println(data[2]);
        System.out.println(data[3]);
    }
}
